Skip to content

Query-level resource usages tracking#13172

Merged
jed326 merged 7 commits intoopensearch-project:mainfrom
ansjcy:query-level-resource-usages-tracking
Jun 7, 2024
Merged

Query-level resource usages tracking#13172
jed326 merged 7 commits intoopensearch-project:mainfrom
ansjcy:query-level-resource-usages-tracking

Conversation

@ansjcy
Copy link
Copy Markdown
Member

@ansjcy ansjcy commented Apr 12, 2024

Description

  • Instrument resource usages before a task finishes on a data node, more specifically, get resource usages before a phase response is sent from query/fetch/.. phase.
  • Piggyback the resource usages data with shard search response headers.
  • Gather data node search tasks resource usages from headers, on coordinator node, and store them into the search context, so that we can infer the query-level resource usage.

Related Issues

Resolves #12399

benchmark tests

Did extensive benchmark tests, merged the tests results by calculating average on multiple runs, and here are the test results:

baseline-resulsts.txt
feature-ressults.txt

I don't see significant impact on search latency with this change.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 32f9a75: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

Compatibility status:

Checks if related components are compatible with change 32f9a75

Incompatible components

Incompatible components: [https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/sql.git]

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/common-utils.git]

@ansjcy ansjcy changed the title Query-level resource usages tracking [DRAFT] Query-level resource usages tracking Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.x Backport to 2.x branch backport-failed enhancement Enhancement or improvement to existing feature or request Search:Query Insights v2.15.0 Issues and PRs related to version 2.15.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Query Insights] Capture query-level resource usage metrics

9 participants